package com.lu.statistics.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.statistics.entity.SysAppPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysAppPermissionMapper  extends BaseMapper<SysAppPermission> {
    /**
     * 查询权限列表
     * @return
     */
    List<SysAppPermission> queryPermissionList();

    /**
     * 统计权限数量
     * @param code
     * @param name
     * @return
     */
    int queryPermissionCount(@Param("code") String code,@Param("name") String name);
}
